﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ccit.ClassLibrary;

namespace Ccit.SysPlat.Organ
{
    /// <summary>
    /// Description: 系统平台组织机构 -> 部门消息对象
    /// Author: tim 2010-01-29
    /// </summary>
    public class MsDept
    {
        #region static attributes
        /// <summary>
        /// 程序集名称
        /// </summary>
        public static string assemblyName = "Ccit.SysOrgan.dll";
        /// <summary>
        /// 类名
        /// </summary>
        public static string className = "Ccit.SysPlat.Organ.Dept";
        #endregion

        #region public attributes
        /// <summary>
        /// 部门Id
        /// </summary>
        public string deptId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string deptName { get; set; }

        /// <summary>
        /// 层级代码
        /// </summary>
        public string layCode { get; set; }

        /// <summary>
        /// 部门描述
        /// </summary>
        public string deptDesc { get; set; }

        /// <summary>
        /// 负责人用户Id
        /// </summary>
        public string adminUserId { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        public string orderNo { get; set; }

        /// <summary>
        /// 删除标志
        /// 0:正常 1:已删除
        /// </summary>
        public string delSign { get; set; }
        #endregion

        #region public extend attributes
        /// <summary>
        /// 负责人用户姓名
        /// </summary>
        public string adminUserName { get; set; }

        /// <summary>
        /// 是否包含下级部门【开发中用到的标志位】
        /// </summary>
        public string isHasChild { get; set; } 

        /// <summary>
        /// 所属机构
        /// </summary>
        public MsOrgan belongOrgan { get; set; }

        /// <summary>
        /// 部门下的用户
        /// 用户Id: 逗号分隔的Id串 【key值存储】
        /// 用户姓名: 空格分隔的名称串 【val值存储】
        /// </summary>
        public MsKeyValue includeUsers { get; set; }

        /// <summary>
        /// 上级部门Id
        /// </summary>
        public string upDeptId { get; set; }
        #endregion

        #region constructor
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public MsDept() { }
        #endregion
    }
}
